<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
		<script type="text/javascript" src="libs/jquery-1.11.0.js"></script>
		<script type="text/javascript" src="pub/JSCommonUtil.js"></script>
		<title>if测试</title>
	</head>


	<body>
		<h1>简单if</h1>
		<div id="father">
			
		</div>
		<h1>混合 jc-repeat</h1>
		<div id='father1'>

		</div>
		<h2>jc-if-loop</h2>
		<div id='father2'></div>
		<h2> jc-if-not  </h2>
		<div id='father3'></div>
		<script type="text/javascript">
		var session={};
		$(function(){
			jc.render({a:true,b:false},"test_if_tmp_1",$('#father'),function(){
				console.log("OK");
			})
			jc.filters.arrayFilters= function(array){
				return array.join(",")
			}
			var data2={a:true,elems:[1,2,3]}
			jc.render(data2,"test_if_tmp_2",$('#father1'),function(){
				console.log("father 1 OK");
			})
			var data3={elems:[
				{data:1,isShow:true},
				{data:2,isShow:false},
				{data:3,isShow:true}				
				]};
					
			jc.render(data3,"test_if_tmp_3",$('#father2'),function(){
				console.log("father 2 OK");
			})
			
			jc.render({a:true,b:false},"test_if_tmp_4",$('#father3'),function(){
				console.log("father3 OK");
			})
		})

		</script>
	</body>
</html>